Hey guys. I've been reading about regular expressions for a few hours now because I thought it could do the job but apparently I either can't find the information I want or regular expressions aren't what I'm looking for. Basically, I want to have a function that searches into an std::list<> containing std::string objects and check if they match. I don't want a function that checks for perfect matches, I want a function that finds the closest possible matches so that if you have a mistake in your search field (such as inversed letters, unmatching case...) it still finds the closest possible matches. I thought regular expressions could do the job but apparently regular expressions are not flexible enough to do so, from what I've read so far. If someone can help me find a solution, I'd be more than happy.

Thanks to everyone.